package com.auxgroup.hr.front.dao.domain;

import java.io.Serializable;
import java.math.BigDecimal;

import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 * @author lvliuhao 
 * @version 创建时间：2018年9月9日 下午3:36:28 
 * 类说明 
 */
public class PsCEpDocVwPrimary implements Serializable {

	private static final long serialVersionUID = -7440100891299044883L;
	
	private String cTransactionNbr;
	private String cWfType;
	private String oprid;
	private BigDecimal version;
	private String cEpAppraisalId;
	private String cEpPhase;
	private BigDecimal seqnbr;
	public String getcTransactionNbr() {
		return cTransactionNbr;
	}
	public void setcTransactionNbr(String cTransactionNbr) {
		this.cTransactionNbr = cTransactionNbr;
	}
	public String getcWfType() {
		return cWfType;
	}
	public void setcWfType(String cWfType) {
		this.cWfType = cWfType;
	}
	public String getOprid() {
		return oprid;
	}
	public void setOprid(String oprid) {
		this.oprid = oprid;
	}
	public BigDecimal getVersion() {
		return version;
	}
	public void setVersion(BigDecimal version) {
		this.version = version;
	}
	public String getcEpAppraisalId() {
		return cEpAppraisalId;
	}
	public void setcEpAppraisalId(String cEpAppraisalId) {
		this.cEpAppraisalId = cEpAppraisalId;
	}
	
	public String getcEpPhase() {
		return cEpPhase;
	}
	public void setcEpPhase(String cEpPhase) {
		this.cEpPhase = cEpPhase;
	}
	public BigDecimal getSeqnbr() {
		return seqnbr;
	}
	public void setSeqnbr(BigDecimal seqnbr) {
		this.seqnbr = seqnbr;
	}
	
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((cEpAppraisalId == null) ? 0 : cEpAppraisalId.hashCode());
		result = prime * result
				+ ((cEpPhase == null) ? 0 : cEpPhase.hashCode());
		result = prime * result
				+ ((cTransactionNbr == null) ? 0 : cTransactionNbr.hashCode());
		result = prime * result + ((cWfType == null) ? 0 : cWfType.hashCode());
		result = prime * result + ((oprid == null) ? 0 : oprid.hashCode());
		result = prime * result + ((seqnbr == null) ? 0 : seqnbr.hashCode());
		result = prime * result + ((version == null) ? 0 : version.hashCode());
		return result;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PsCEpDocVwPrimary other = (PsCEpDocVwPrimary) obj;
		if (cEpAppraisalId == null) {
			if (other.cEpAppraisalId != null)
				return false;
		} else if (!cEpAppraisalId.equals(other.cEpAppraisalId))
			return false;
		if (cEpPhase == null) {
			if (other.cEpPhase != null)
				return false;
		} else if (!cEpPhase.equals(other.cEpPhase))
			return false;
		if (cTransactionNbr == null) {
			if (other.cTransactionNbr != null)
				return false;
		} else if (!cTransactionNbr.equals(other.cTransactionNbr))
			return false;
		if (cWfType == null) {
			if (other.cWfType != null)
				return false;
		} else if (!cWfType.equals(other.cWfType))
			return false;
		if (oprid == null) {
			if (other.oprid != null)
				return false;
		} else if (!oprid.equals(other.oprid))
			return false;
		if (seqnbr == null) {
			if (other.seqnbr != null)
				return false;
		} else if (!seqnbr.equals(other.seqnbr))
			return false;
		if (version == null) {
			if (other.version != null)
				return false;
		} else if (!version.equals(other.version))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
 